import { defineConfig } from 'vite'
import { createVuePlugin } from 'vite-plugin-vue2'
import path from 'path'
const resolve = (dir) => {
  return path.join(__dirname, dir)
}

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [createVuePlugin({ jsx: true })],
  server: {
    port: 3001,
  },
  resolve: {
    alias: {
      '@': resolve('src'),
      _c: resolve('src/components'),
      _bc: resolve('src/business_components'),
    },
  },
})
